<template>
	<view>
		管理员首页
		<tabbar :selected="selectedNum" :isAdmin='isAdmin'></tabbar>
	</view>
</template>

<script>
	import tabbar from '../../../components/my_tabBar.vue'
	export default {
		components: {
			tabbar
		},
		data() {
			return {
				selectedNum: 1,
				isAdmin: false,
			}
		},
		onShow() {
			//把原生tabbar组件隐藏掉
			uni.hideTabBar({
				animation: false
			})
			this.isAdmin = uni.getStorageSync('role') == 1 ? false : true;
		},
		methods: {

		}
	}
</script>

<style>

</style>